package com.songyang.Restaurant.Repository;

import com.songyang.Restaurant.Model.Restaurant;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface RestaurantMapper {

    @Insert("insert into restaurant(name,address,rating,created_at,updated_at) values(#{name},#{address},#{rating},#{openTime},#{updateTime})")
    public void addRestaurant(Restaurant restaurant);

}
